/**
 * 
 */
package neptune.web.client.view.components.editor;

import neptune.web.client.model.topology.SerializableSoftware;

import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.ui.TreeItem;

/**
 * @author Roberto Bifulco [RobertoBifulco.it] [info@robertoBifulco.it]
 * 
 */
public class SoftwarePropsCommand implements Command {

	private SerializableSoftware soft;
	private TreeItem treeItem;

	public SoftwarePropsCommand(SerializableSoftware soft, TreeItem treeItem) {
		this.soft = soft;
		this.treeItem = treeItem;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.google.gwt.user.client.Command#execute()
	 */
	public void execute() {
		SoftwarePropsDialog dialog = new SoftwarePropsDialog(soft, treeItem);
		dialog.center();
	}

}
